Skip to content

Fix OCPI2 parking trend parsing#8

Merged
pjeweb merged 1 commit into
mainfrom
paul/fix-ocpi2-parking-trend
Jun 20, 2026
Merged

Fix OCPI2 parking trend parsing#8
pjeweb merged 1 commit into
mainfrom
paul/fix-ocpi2-parking-trend

Conversation

@pjeweb

@pjeweb pjeweb commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix OCPI2 parking trend selection so array_reduce() can start with PHP's initial null carry value.
  • Share the null-safe trend-source selection between OCPI2 and PH-Werte parking data.
  • Add a regression test for OCPI2 shortterm values with PredictionInterval = 0.

Test plan

  • ./vendor/bin/phpunit --testsuite pulp-concert
  • composer test
  • PHP_VERSIONS="8.5" bin/test-php-matrix

Allow parking trend reduction to start from an empty carry value so OCPI2 short-term occupancy data parses cleanly on PHP 8.
@pjeweb pjeweb merged commit d8e8e8a into main Jun 20, 2026
7 checks passed
@pjeweb pjeweb deleted the paul/fix-ocpi2-parking-trend branch June 20, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant